package cn.hackcloud.annotation.test;

import org.junit.Test;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

import cn.hackcloud.annotation.aop.MathCalculator;
import cn.hackcloud.annotation.config.MainConfigAop;

public class IOCTestAop extends BaseTest {
	AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(MainConfigAop.class);

	@Test
	public void test() {
		System.out.println("容器创建完成...");
		MathCalculator calculator = ctx.getBean(MathCalculator.class);
		calculator.div(1, 2);
	}

}
